home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Qumana 3.0.1 / Qumana-3.0.1-en-qumana.exe / Qumana.exe / com / qumana / data / Blog.hbm.xml < prev    next >
Extensible Markup Language  |  2006-11-27  |  2KB  |  107 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  3. <hibernate-mapping package="com.qumana.data">
  4.     <class
  5.         name="Blog"
  6.         table="BLOGS">
  7.         
  8.         <id
  9.             name="id"
  10.             column="BLOG_ID"
  11.             type="long">
  12.             <generator class="native"/>
  13.         </id>
  14.         
  15.         <property
  16.             name="blogId"
  17.             column="ID"
  18.             type="string"/>
  19.             
  20.         <property
  21.             name="name"
  22.             column="NAME"
  23.             type="string"/>
  24.             
  25.         <property
  26.             name="url"
  27.             column="URL"
  28.             type="string"/>
  29.         
  30.         <property
  31.             name="apiUrl"
  32.             column="APIURL"
  33.             type="string"/>
  34.         
  35.         <property
  36.             name="platform"
  37.             column="PLATFORM"
  38.             type="integer"/>
  39.             
  40.         <property
  41.             name="username"
  42.             column="USERNAME"
  43.             type="string"/>
  44.             
  45.         <property
  46.             name="password"
  47.             column="PASSWORD"
  48.             type="string"/>
  49.             
  50.         <property
  51.             name="timeZone"
  52.             column="TIMEZONE"
  53.             type="string"/>
  54.         
  55.         <component
  56.             name="userInfo"
  57.             class="UserInfo">
  58.             <property
  59.                 name="email"
  60.                 type="string"
  61.                 column="USER_EMAIL"/>
  62.             <property
  63.                 name="firstName"
  64.                 type="string"
  65.                 column="USER_FIRSTNAME"/>
  66.             <property
  67.                 name="id"
  68.                 type="string"
  69.                 column="USER_ID"/>
  70.             <property
  71.                 name="lastName"
  72.                 type="string"
  73.                 column="USER_LASTNAME"/>
  74.             <property
  75.                 name="nickname"
  76.                 type="string"
  77.                 column="USER_NICKNAME"/>
  78.             <property
  79.                 name="url"
  80.                 type="string"
  81.                 column="USER_URL"/>
  82.         </component>
  83.         
  84.         <!--
  85.         We'll save posts manually, but let Hibernate remove them when
  86.         we delete the blog.
  87.         -->
  88.         <set
  89.             name="posts"
  90.             inverse="true"
  91.             cascade="delete">
  92.             <key column="BLOG_ID"/>
  93.             <one-to-many class="BlogPost"/>
  94.         </set>
  95.         
  96.         <set
  97.             name="categories"
  98.             inverse="true"
  99.             lazy="false"
  100.             cascade="all-delete-orphan">
  101.             <key column="BLOG_ID"/>
  102.             <one-to-many class="Category"/>
  103.         </set>
  104.         
  105.     </class>
  106. </hibernate-mapping>
  107.